Crate somedoc
A very simple document model and markup generator.
==========
Model
The somedoc::model
module provides the model to construct documents.
Example
Writers
The somedoc::write
module contains a number of serializers that generate specific markup for different platforms.
Example
The following writes a constructed document to stdout
as a Markdown document. The default flavor supported by
the writer is the CommonMark spec.
use write_document_to_string;
use MarkdownFlavor;
let doc = make_some_document;
let doc_str = write_document_to_string.unwrap;
println!;
The following writes the same document out in the XWiki markup form.
use ;
let doc = make_some_document;
let doc_str = write_document_to_string.unwrap;
println!;
==========
Changes
Version 0.1.7
- Fixed a bug in HeadingLevel/markdown generation.
Version 0.1.6
- Started on library documentation.
- Refactored document metadata, and Markdown writer accordingly.
- Added
readme_maker
example, this is used in the README and lib.rs documentation. - Renamed
TextStyle
->SpanStyle
, addedSized
variant. - Removed the
read
module as it was currently empty. - Removed the
model::visitor
module, too many changes to stabilize yet. - Fixed a bug in XWiki
write_code
function. - Added
model::inline::emoji_names
module, but only enabled foremoji_names
feature. - Adding test cases.
Version 0.1.5 (not published)
- Added some more replacement rules for XWiki anchors.
Version 0.1.4
- Moved the rules for formatting an
Anchor
into each writer.
Version 0.1.3
- Added
Formatted
alongsideCodeBlock
. - Removed some additional blank lines from both Markdown and XWiki writers.
Version 0.1.2
- Fixed nested list bug in XWiki writer.
Version 0.1.1
- Added cargo-husky for git hooks.
- Fixed bug in tables for XWiki writer.
Version 0.1.0
- Initial commit. Basic model working, initial Markdown and XWiki writers.